<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
  <edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0">
    <Schema Namespace="NetflixModel" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
      <EntityType Name="Genre">
        <Key>
          <PropertyRef Name="Name" />
        </Key>
        <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" m:FC_TargetPath="SyndicationTitle" />
        <NavigationProperty Name="Titles" Relationship="NetflixModel.TitleGenres" FromRole="Genres" ToRole="Titles" />
      </EntityType>
      <EntityType Name="Language">
        <Key>
          <PropertyRef Name="Name" />
        </Key>
        <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="80" Unicode="false" FixedLength="false" m:FC_TargetPath="SyndicationTitle" />
        <NavigationProperty Name="Titles" Relationship="NetflixModel.TitleLanguages" FromRole="Language" ToRole="Titles" />
      </EntityType>
      <EntityType Name="Person">
        <Key>
          <PropertyRef Name="Id" />
        </Key>
        <Property Name="Id" Type="Edm.Int32" Nullable="false" />
        <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="80" Unicode="true" FixedLength="false" m:FC_TargetPath="SyndicationTitle" />
        <NavigationProperty Name="Awards" Relationship="NetflixModel.FK_TitleAward_Person" FromRole="People" ToRole="TitleAwards" />
        <NavigationProperty Name="TitlesActedIn" Relationship="NetflixModel.TitleActors" FromRole="People" ToRole="Titles" />
        <NavigationProperty Name="TitlesDirected" Relationship="NetflixModel.TitleDirectors" FromRole="People" ToRole="Titles" />
      </EntityType>
      <EntityType Name="TitleAudioFormat">
        <Key>
          <PropertyRef Name="TitleId" />
          <PropertyRef Name="DeliveryFormat" />
          <PropertyRef Name="Language" />
          <PropertyRef Name="Format" />
        </Key>
        <Property Name="TitleId" Type="Edm.String" Nullable="false" MaxLength="30" FixedLength="false" />
        <Property Name="DeliveryFormat" Type="Edm.String" Nullable="false" MaxLength="10" Unicode="false" FixedLength="false" />
        <Property Name="Language" Type="Edm.String" Nullable="false" MaxLength="30" Unicode="false" FixedLength="false" />
        <Property Name="Format" Type="Edm.String" Nullable="false" MaxLength="30" Unicode="false" FixedLength="false" />
        <NavigationProperty Name="Title" Relationship="NetflixModel.FK_TitleAudioFormat_Title" FromRole="TitleAudioFormats" ToRole="Titles" />
      </EntityType>
      <EntityType Name="TitleAward">
        <Key>
          <PropertyRef Name="Id" />
        </Key>
        <Property Name="Id" Type="Edm.Guid" Nullable="false" />
        <Property Name="Type" Type="Edm.String" Nullable="false" MaxLength="30" Unicode="false" FixedLength="false" />
        <Property Name="Category" Type="Edm.String" Nullable="false" MaxLength="60" Unicode="false" FixedLength="false" />
        <Property Name="Year" Type="Edm.Int32" Nullable="true" />
        <Property Name="Won" Type="Edm.Boolean" Nullable="false" />
        <NavigationProperty Name="Title" Relationship="NetflixModel.FK_TitleAward_Title" FromRole="TitleAwards" ToRole="Titles" />
        <NavigationProperty Name="Person" Relationship="NetflixModel.FK_TitleAward_Person" FromRole="TitleAwards" ToRole="People" />
      </EntityType>
      <EntityType Name="Title" m:HasStream="true">
        <Key>
          <PropertyRef Name="Id" />
        </Key>
        <Property Name="Id" Type="Edm.String" Nullable="false" MaxLength="30" FixedLength="false" />
        <Property Name="Synopsis" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="false" FixedLength="false" m:FC_TargetPath="SyndicationSummary" m:FC_ContentKind="html" />
        <Property Name="ShortSynopsis" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="false" FixedLength="false" />
        <Property Name="AverageRating" Type="Edm.Double" Nullable="true" />
        <Property Name="ReleaseYear" Type="Edm.Int32" Nullable="true" />
        <Property Name="Url" Type="Edm.String" Nullable="true" MaxLength="200" Unicode="false" FixedLength="false" />
        <Property Name="Runtime" Type="Edm.Int32" Nullable="true" />
        <Property Name="Rating" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="false" FixedLength="false" />
        <Property Name="DateModified" Type="Edm.DateTime" Nullable="false" ConcurrencyMode="Fixed" m:FC_TargetPath="SyndicationUpdated" m:FC_KeepInContent="false" />
        <Property Name="Type" Type="Edm.String" Nullable="false" MaxLength="8" Unicode="false" FixedLength="false" />
        <Property Name="BoxArt" Type="NetflixModel.BoxArt" Nullable="false" />
        <Property Name="ShortName" Type="Edm.String" Nullable="false" MaxLength="200" Unicode="false" FixedLength="false" />
        <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="200" Unicode="false" FixedLength="false" m:FC_TargetPath="SyndicationTitle" />
        <Property Name="Instant" Type="NetflixModel.InstantAvailability" Nullable="false" />
        <Property Name="Dvd" Type="NetflixModel.DeliveryFormatAvailability" Nullable="false" />
        <Property Name="BluRay" Type="NetflixModel.DeliveryFormatAvailability" Nullable="false" />
        <Property Name="TinyUrl" Type="Edm.String" Nullable="false" MaxLength="30" />
        <Property Name="WebsiteUrl" Type="Edm.String" Nullable="true" MaxLength="200" />
        <Property Name="NetflixApiId" Type="Edm.String" Nullable="false" MaxLength="200" />
        <NavigationProperty Name="AudioFormats" Relationship="NetflixModel.FK_TitleAudioFormat_Title" FromRole="Titles" ToRole="TitleAudioFormats" />
        <NavigationProperty Name="Awards" Relationship="NetflixModel.FK_TitleAward_Title" FromRole="Titles" ToRole="TitleAwards" />
        <NavigationProperty Name="Disc" Relationship="NetflixModel.FK_Title_Disc" FromRole="Titles1" ToRole="Titles" />
        <NavigationProperty Name="Movie" Relationship="NetflixModel.FK_Title_Movie" FromRole="Titles1" ToRole="Titles" />
        <NavigationProperty Name="Season" Relationship="NetflixModel.FK_Title_Season" FromRole="Titles1" ToRole="Titles" />
        <NavigationProperty Name="Series" Relationship="NetflixModel.FK_Title_Series" FromRole="Titles1" ToRole="Titles" />
        <NavigationProperty Name="ScreenFormats" Relationship="NetflixModel.FK_TitleScreenFormat_Title" FromRole="Titles" ToRole="TitleScreenFormats" />
        <NavigationProperty Name="Cast" Relationship="NetflixModel.TitleActors" FromRole="Titles" ToRole="People" />
        <NavigationProperty Name="Languages" Relationship="NetflixModel.TitleLanguages" FromRole="Titles" ToRole="Language" />
        <NavigationProperty Name="Directors" Relationship="NetflixModel.TitleDirectors" FromRole="Titles" ToRole="People" />
        <NavigationProperty Name="Genres" Relationship="NetflixModel.TitleGenres" FromRole="Titles" ToRole="Genres" />
      </EntityType>
      <ComplexType Name="BoxArt">
        <Property Name="SmallUrl" Type="Edm.String" Nullable="true" MaxLength="80" Unicode="false" FixedLength="false" />
        <Property Name="MediumUrl" Type="Edm.String" Nullable="true" MaxLength="80" Unicode="false" FixedLength="false" />
        <Property Name="LargeUrl" Type="Edm.String" Nullable="true" MaxLength="80" Unicode="false" FixedLength="false" />
        <Property Name="HighDefinitionUrl" Type="Edm.String" Nullable="true" MaxLength="80" Unicode="false" FixedLength="false" />
      </ComplexType>
      <ComplexType Name="InstantAvailability">
        <Property Name="Available" Type="Edm.Boolean" Nullable="false" />
        <Property Name="AvailableFrom" Type="Edm.DateTime" Nullable="true" />
        <Property Name="AvailableTo" Type="Edm.DateTime" Nullable="true" />
        <Property Name="HighDefinitionAvailable" Type="Edm.Boolean" Nullable="false" />
        <Property Name="Runtime" Type="Edm.Int32" Nullable="true" />
        <Property Name="Rating" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="false" FixedLength="false" />
      </ComplexType>
      <ComplexType Name="DeliveryFormatAvailability">
        <Property Name="Available" Type="Edm.Boolean" Nullable="false" />
        <Property Name="AvailableFrom" Type="Edm.DateTime" Nullable="true" />
        <Property Name="AvailableTo" Type="Edm.DateTime" Nullable="true" />
        <Property Name="Runtime" Type="Edm.Int32" Nullable="true" />
        <Property Name="Rating" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="false" FixedLength="false" />
      </ComplexType>
      <EntityType Name="TitleScreenFormat">
        <Key>
          <PropertyRef Name="TitleId" />
          <PropertyRef Name="DeliveryFormat" />
          <PropertyRef Name="Format" />
        </Key>
        <Property Name="TitleId" Type="Edm.String" Nullable="false" MaxLength="30" FixedLength="false" />
        <Property Name="DeliveryFormat" Type="Edm.String" Nullable="false" MaxLength="10" Unicode="false" FixedLength="false" />
        <Property Name="Format" Type="Edm.String" Nullable="false" MaxLength="30" Unicode="false" FixedLength="false" />
        <NavigationProperty Name="Title" Relationship="NetflixModel.FK_TitleScreenFormat_Title" FromRole="TitleScreenFormats" ToRole="Titles" />
      </EntityType>
      <Association Name="FK_TitleAudioFormat_Title">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="1" />
        <End Role="TitleAudioFormats" Type="NetflixModel.TitleAudioFormat" Multiplicity="*" />
        <ReferentialConstraint>
          <Principal Role="Titles">
            <PropertyRef Name="Id" />
          </Principal>
          <Dependent Role="TitleAudioFormats">
            <PropertyRef Name="TitleId" />
          </Dependent>
        </ReferentialConstraint>
      </Association>
      <Association Name="FK_TitleAward_Title">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="1" />
        <End Role="TitleAwards" Type="NetflixModel.TitleAward" Multiplicity="*" />
      </Association>
      <Association Name="FK_TitleAward_Person">
        <End Role="People" Type="NetflixModel.Person" Multiplicity="0..1" />
        <End Role="TitleAwards" Type="NetflixModel.TitleAward" Multiplicity="*" />
      </Association>
      <Association Name="FK_Title_Disc">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="0..1" />
        <End Role="Titles1" Type="NetflixModel.Title" Multiplicity="*" />
      </Association>
      <Association Name="FK_Title_Movie">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="0..1" />
        <End Role="Titles1" Type="NetflixModel.Title" Multiplicity="*" />
      </Association>
      <Association Name="FK_Title_Season">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="0..1" />
        <End Role="Titles1" Type="NetflixModel.Title" Multiplicity="*" />
      </Association>
      <Association Name="FK_Title_Series">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="0..1" />
        <End Role="Titles1" Type="NetflixModel.Title" Multiplicity="*" />
      </Association>
      <Association Name="FK_TitleScreenFormat_Title">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="1" />
        <End Role="TitleScreenFormats" Type="NetflixModel.TitleScreenFormat" Multiplicity="*" />
        <ReferentialConstraint>
          <Principal Role="Titles">
            <PropertyRef Name="Id" />
          </Principal>
          <Dependent Role="TitleScreenFormats">
            <PropertyRef Name="TitleId" />
          </Dependent>
        </ReferentialConstraint>
      </Association>
      <Association Name="TitleActors">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="*" />
        <End Role="People" Type="NetflixModel.Person" Multiplicity="*" />
      </Association>
      <Association Name="TitleLanguages">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="*" />
        <End Role="Language" Type="NetflixModel.Language" Multiplicity="*" />
      </Association>
      <Association Name="TitleDirectors">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="*" />
        <End Role="People" Type="NetflixModel.Person" Multiplicity="*" />
      </Association>
      <Association Name="TitleGenres">
        <End Role="Titles" Type="NetflixModel.Title" Multiplicity="*" />
        <End Role="Genres" Type="NetflixModel.Genre" Multiplicity="*" />
      </Association>
    </Schema>
    <Schema Namespace="NetflixCatalog.Services.v1" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
      <EntityContainer Name="NetflixCatalog" m:IsDefaultEntityContainer="true">
        <FunctionImport Name="Movies" EntitySet="Titles" ReturnType="Collection(NetflixModel.Title)" m:HttpMethod="GET" />
        <FunctionImport Name="Series" EntitySet="Titles" ReturnType="Collection(NetflixModel.Title)" m:HttpMethod="GET" />
        <FunctionImport Name="Seasons" EntitySet="Titles" ReturnType="Collection(NetflixModel.Title)" m:HttpMethod="GET" />
        <FunctionImport Name="Discs" EntitySet="Titles" ReturnType="Collection(NetflixModel.Title)" m:HttpMethod="GET" />
        <FunctionImport Name="Episodes" EntitySet="Titles" ReturnType="Collection(NetflixModel.Title)" m:HttpMethod="GET" />
        <EntitySet Name="Genres" EntityType="NetflixModel.Genre" />
        <EntitySet Name="Languages" EntityType="NetflixModel.Language" />
        <EntitySet Name="People" EntityType="NetflixModel.Person" />
        <EntitySet Name="TitleAudioFormats" EntityType="NetflixModel.TitleAudioFormat" />
        <EntitySet Name="TitleAwards" EntityType="NetflixModel.TitleAward" />
        <EntitySet Name="Titles" EntityType="NetflixModel.Title" />
        <EntitySet Name="TitleScreenFormats" EntityType="NetflixModel.TitleScreenFormat" />
        <AssociationSet Name="FK_TitleAudioFormat_Title" Association="NetflixModel.FK_TitleAudioFormat_Title">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="TitleAudioFormats" EntitySet="TitleAudioFormats" />
        </AssociationSet>
        <AssociationSet Name="FK_TitleAward_Title" Association="NetflixModel.FK_TitleAward_Title">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="TitleAwards" EntitySet="TitleAwards" />
        </AssociationSet>
        <AssociationSet Name="FK_TitleAward_Person" Association="NetflixModel.FK_TitleAward_Person">
          <End Role="People" EntitySet="People" />
          <End Role="TitleAwards" EntitySet="TitleAwards" />
        </AssociationSet>
        <AssociationSet Name="FK_Title_Disc" Association="NetflixModel.FK_Title_Disc">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="Titles1" EntitySet="Titles" />
        </AssociationSet>
        <AssociationSet Name="FK_Title_Movie" Association="NetflixModel.FK_Title_Movie">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="Titles1" EntitySet="Titles" />
        </AssociationSet>
        <AssociationSet Name="FK_Title_Season" Association="NetflixModel.FK_Title_Season">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="Titles1" EntitySet="Titles" />
        </AssociationSet>
        <AssociationSet Name="FK_Title_Series" Association="NetflixModel.FK_Title_Series">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="Titles1" EntitySet="Titles" />
        </AssociationSet>
        <AssociationSet Name="FK_TitleScreenFormat_Title" Association="NetflixModel.FK_TitleScreenFormat_Title">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="TitleScreenFormats" EntitySet="TitleScreenFormats" />
        </AssociationSet>
        <AssociationSet Name="TitleActors" Association="NetflixModel.TitleActors">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="People" EntitySet="People" />
        </AssociationSet>
        <AssociationSet Name="TitleLanguages" Association="NetflixModel.TitleLanguages">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="Language" EntitySet="Languages" />
        </AssociationSet>
        <AssociationSet Name="TitleDirectors" Association="NetflixModel.TitleDirectors">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="People" EntitySet="People" />
        </AssociationSet>
        <AssociationSet Name="TitleGenres" Association="NetflixModel.TitleGenres">
          <End Role="Titles" EntitySet="Titles" />
          <End Role="Genres" EntitySet="Genres" />
        </AssociationSet>
      </EntityContainer>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>